projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f7efe8
)
rk3036: Fix unused variable warning
author
Tom Rini
<
[email protected]
>
Tue, 9 May 2017 02:14:20 +0000
(22:14 -0400)
committer
Tom Rini
<
[email protected]
>
Fri, 12 May 2017 12:37:22 +0000
(08:37 -0400)
The variable grf is only referenced if EARLY_DEBUG is defined so move the
declaration to be under the existing guard.
Cc: Simon Glass <
[email protected]
>
Signed-off-by: Tom Rini <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
arch/arm/mach-rockchip/rk3036-board-spl.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/rk3036-board-spl.c
b/arch/arm/mach-rockchip/rk3036-board-spl.c
index 0522d6546742b24056823050d907ffcd9b932849..7b8d0ee653f8290f685f262e694ef8babb42bcc1 100644
(file)
--- a/
arch/arm/mach-rockchip/rk3036-board-spl.c
+++ b/
arch/arm/mach-rockchip/rk3036-board-spl.c
@@
-17,13
+17,13
@@
DECLARE_GLOBAL_DATA_PTR;
#define GRF_BASE 0x20008000
-static struct rk3036_grf * const grf = (void *)GRF_BASE;
#define DEBUG_UART_BASE 0x20068000
void board_init_f(ulong dummy)
{
#ifdef EARLY_DEBUG
+ struct rk3036_grf * const grf = (void *)GRF_BASE;
/*
* NOTE: sd card and debug uart use same iomux in rk3036,
* so if you enable uart,